package com.zxq.uart.controller;

import com.zxq.uart.frame.decoder._08SetConsumerResult;
import com.zxq.uart.frame.encoder._08SetConsumerCmd;
import com.zxq.uart.result.ResultVO;
import com.zxq.uart.service.impl.PlatformExchange;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class _08SetConsumerController extends PlatformExchange<_08SetConsumerCmd, _08SetConsumerResult> {


    @Override
    public Integer getCmd() {
        return 0X08;
    }

    @PostMapping("exchange/08")
    @Override
    public ResultVO<_08SetConsumerResult> exchange(@RequestBody _08SetConsumerCmd order) {
        return super.exchange(order);
    }

    @Override
    public _08SetConsumerResult getResult() {
        return new _08SetConsumerResult();
    }
}
